var arr = [1,2,3,4,5]
console.log(arr.toString())

console.log(arr.join('&'))

//ids = id=1&id=2
